package com.wocai.jrt.orgadmin.stats.service.impl;

import java.util.Map;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.stats.service.spi.GroupStatsService;
import com.wocai.jrt.orgadmin.stats.service.spi.RedisCacheGroupStatsService;

@Named
public class GroupStatsServiceImpl implements GroupStatsService {
	// private static final Logger LOGGER =
	// LoggerFactory.getLogger(GroupStatsServiceImpl.class);
	@Inject
	private RedisCacheGroupStatsService redisCacheGroupStatsServiceImpl;

	@Override
	public Map<String, Object> queryGroupSalesPerformance(String groupId, String date) {
		return redisCacheGroupStatsServiceImpl.queryGroupSalesPerformance(groupId, date);
	}

	@Override
	public Map<String, Object> queryGroupinvestorPerformance(String groupId, String date) {
		return redisCacheGroupStatsServiceImpl.queryGroupinvestorPerformance(groupId, date);
	}

	@Override
	public Map<String, Object> queryGroupAppointmentPerformance(String groupId, String date) {
		return redisCacheGroupStatsServiceImpl.queryGroupAppointmentPerformance(groupId, date);
	}

	@Override
	public Double queryGroupSalesPerformanceYear(String groupId, String date) {
		return redisCacheGroupStatsServiceImpl.queryGroupSalesPerformanceYear(groupId, date);
	}

	@Override
	public Integer queryGroupinvestorPerformanceYear(String groupId, String date) {
		return redisCacheGroupStatsServiceImpl.queryGroupinvestorPerformanceYear(groupId, date);
	}

	@Override
	public Integer queryGroupAppointmentPerformanceYear(String groupId, String date) {
		return redisCacheGroupStatsServiceImpl.queryGroupAppointmentPerformanceYear(groupId, date);
	}
}
